package com.anxin.registerManagement.bean.persist;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author 叶前呈
 * @date 2022/3/29 22:06
 */
@Data
@ApiModel("场景距离类")
public class SceneDist extends CommonData {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @NotNull(message = "起始场景不能为空")
    private Integer startScene;

    @NotNull(message = "目的场景不能为空")
    private Integer endScene;

    @NotNull(message = "场景距离不能为空")
    private float distance;

}
